package com.hiwan.system.dao.facereco;

import java.util.List;

import org.framework.dao.ServiceUtilDao;
import org.springframework.stereotype.Component;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import com.hiwan.system.pojo.EntryInfo;

@Component
@Service
@Repository
public class FaceRecoDao extends ServiceUtilDao {

	/**
	 * 新增贷款申请信息
	 * @param entryInfo
	 * @return
	 */
	public int insertEntryInfo(EntryInfo entryInfo){
		return this.insert("insertEntryInfo", entryInfo);
	}
	
	/**
	 * 查询贷款申请信息
	 * @param entryInfo
	 * @return
	 */
	public EntryInfo selectEntryInfo(EntryInfo entryInfo){
		return this.selectOne("selectEntryInfo", entryInfo, EntryInfo.class);
	}
	
	/**
	 * 查询贷款申请信息
	 * @param entryInfo
	 * @return
	 */
	public List<EntryInfo> selectEntryInfoList(EntryInfo entryInfo){
		return this.selectList("selectEntryInfo", entryInfo, EntryInfo.class);
	}
	/**
	 * 查询贷款申请信息
	 * @param entryInfo
	 * @return
	 */
	public List<EntryInfo> selectEntryInfoListPage(EntryInfo entryInfo){
		return this.selectListPage("selectEntryInfoListPage", entryInfo, EntryInfo.class);
	}
	
	public int updateLoanContract(EntryInfo entryInfo){
		return update("updateLoanContract", entryInfo);
	}

}